package com.yipao.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoFootprint;
import com.yipao.db.domain.YipaoFootprintExample;

/**
 * @author tianhao
 */
public interface FootprintMapper {

    long countByExample(YipaoFootprintExample example);


    int deleteByExample(YipaoFootprintExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoFootprint record);


    int insertSelective(YipaoFootprint record);


    YipaoFootprint selectOneByExample(YipaoFootprintExample example);


    YipaoFootprint selectOneByExampleSelective(@Param("example") YipaoFootprintExample example, @Param("selective") YipaoFootprint.Column ... selective);


    List<YipaoFootprint> selectByExampleSelective(@Param("example") YipaoFootprintExample example, @Param("selective") YipaoFootprint.Column ... selective);


    List<YipaoFootprint> selectByExample(YipaoFootprintExample example);


    YipaoFootprint selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoFootprint.Column ... selective);


    YipaoFootprint selectByPrimaryKey(Integer id);


    YipaoFootprint selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoFootprint record, @Param("example") YipaoFootprintExample example);


    int updateByExample(@Param("record") YipaoFootprint record, @Param("example") YipaoFootprintExample example);


    int updateByPrimaryKeySelective(YipaoFootprint record);


    int updateByPrimaryKey(YipaoFootprint record);


    int logicalDeleteByExample(@Param("example") YipaoFootprintExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
